package com.server.admin;

import com.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdminRoleServer {
    List<Role> selectRole();
    List<Role> selectRoleUserName(@Param("userName")String userName);
    List<Role> selectAdminRole(@Param("roleId") String roleId, @Param("roleName") String roleName, @Param("limit") int limit, @Param("page") int page);
    List<Role> selectRoleId(@Param("roleId") int roleId);

    int insertAdminRole(@Param("roleId") int roleId, @Param("roleName") String roleName,@Param("status") int status,@Param("remark") String remark,
                        @Param("register_time") String register_time);

    int updateAdminRole(@Param("roleId") int roleId, @Param("roleName") String roleName,@Param("status") int status,@Param("remark") String remark,
                        @Param("update_time") String update_time);
    int getAutoId();
    int repeatRoleName(@Param("roleName") String roleName);
    int deleteAdminRole(@Param("roleId") int roleId);
    int deleteAdminRoleMenu(@Param("roleId") int roleId);

    int InsertAdminRoleMenu(@Param("roleId") int roleId,@Param("menuId") int menuId);
}
